package com.ruoyi.project.xkx.school.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 所有班级对象 xkx_class
 *
 * @author ..
 * @date 2021-05-11
 */
public class XkxClass {
  private static final long serialVersionUID = 1L;

  /**
   * 主键
   */
  @Excel(name = "主键")
  @TableId(value = "class_id",type = IdType.AUTO)
  private Integer classId;

  /**
   * 班级编号
   */
  @Excel(name = "班级编号")
  private String classNumber;

  /**
   * 班级名称
   */
  @Excel(name = "班级名称")
  private String className;

  /**
   * 默认扣除课时
   */
  @Excel(name = "默认扣除课时")
  private Integer classDeductHours;

  /**
   * 上课时间
   */
  @Excel(name = "上课时间")
  private String classTime;

  /**
   * 所属校区
   */
  @Excel(name = "所属校区")
  private Integer schoolId;

  /**
   * 该班 授课内容 讲什么课
   */
  @Excel(name = "该班 授课内容 讲什么课")
  private Integer courseId;

  /**
   * 授课老师
   */
  @Excel(name = "授课老师")
  private Integer teacherId;

  /**
   * 助教老师
   */
  @Excel(name = "助教老师 ")
  private Integer assistantId;

  /**
   * 班级备注
   */
  @Excel(name = "班级备注")
  private String classNote;

  /**
   * 学生人数
   */
  @Excel(name = "学生人数")
  private Integer stuCount;

  private Integer attendance;

  @TableField(exist = false)
  private String schoolName;
  @TableField(exist = false)
  private String courseName;
  @TableField(exist = false)
  private String nickName;

  @TableField(exist = false)
  private Double coursePrice;//课程价格
  @TableField(exist = false)
  private  Integer courseHour;//课程课时

  public Integer getCourseHour() {
    return courseHour;
  }

  public void setCourseHour(Integer courseHour) {
    this.courseHour = courseHour;
  }

  public Double getCoursePrice() {
    return coursePrice;
  }

  public void setCoursePrice(Double coursePrice) {
    this.coursePrice = coursePrice;
  }

  public Integer getAttendance() {
    return attendance;
  }

  public void setAttendance(Integer attendance) {
    this.attendance = attendance;
  }

  public String getSchoolName() {
    return schoolName;
  }

  public void setSchoolName(String schoolName) {
    this.schoolName = schoolName;
  }

  public String getCourseName() {
    return courseName;
  }

  public void setCourseName(String courseName) {
    this.courseName = courseName;
  }

  public String getNickName() {
    return nickName;
  }

  public void setNickName(String nickName) {
    this.nickName = nickName;
  }

  public void setClassId(Integer classId) {
    this.classId = classId;
  }

  public Integer getClassId() {
    return classId;
  }

  public void setClassNumber(String classNumber) {
    this.classNumber = classNumber;
  }

  public String getClassNumber() {
    return classNumber;
  }

  public void setClassName(String className) {
    this.className = className;
  }

  public String getClassName() {
    return className;
  }

  public void setClassDeductHours(Integer classDeductHours) {
    this.classDeductHours = classDeductHours;
  }

  public Integer getClassDeductHours() {
    return classDeductHours;
  }

  public void setClassTime(String classTime) {
    this.classTime = classTime;
  }

  public String getClassTime() {
    return classTime;
  }

  public void setSchoolId(Integer schoolId) {
    this.schoolId = schoolId;
  }

  public Integer getSchoolId() {
    return schoolId;
  }

  public void setCourseId(Integer courseId) {
    this.courseId = courseId;
  }

  public Integer getCourseId() {
    return courseId;
  }

  public void setTeacherId(Integer teacherId) {
    this.teacherId = teacherId;
  }

  public Integer getTeacherId() {
    return teacherId;
  }

  public void setAssistantId(Integer assistantId) {
    this.assistantId = assistantId;
  }

  public Integer getAssistantId() {
    return assistantId;
  }

  public void setClassNote(String classNote) {
    this.classNote = classNote;
  }

  public String getClassNote() {
    return classNote;
  }

  public void setStuCount(Integer stuCount) {
    this.stuCount = stuCount;
  }

  public Integer getStuCount() {
    return stuCount;
  }

  @Override
  public String toString() {
    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
        .append("classId", getClassId())
        .append("classNumber", getClassNumber())
        .append("className", getClassName())
        .append("classDeductHours", getClassDeductHours())
        .append("classTime", getClassTime())
        .append("schoolId", getSchoolId())
        .append("courseId", getCourseId())
        .append("teacherId", getTeacherId())
        .append("assistantId", getAssistantId())
        .append("classNote", getClassNote())
        .append("stuCount", getStuCount())
        .toString();
  }
}
